Rabin Fingerprint (1981)

Let file f=0101101f = 010…1101 of length nn be interpreted as an nn bit integer, i.e. between 0 and 2n2^n. Construct hh randomly: choose random prime number pp between 2 and tnlog(tn)tn \log(tn) for a constant tt. h(f)=f(modp)h(f)=f \pmod p h(f)h(f) takes log(p)\log(p) bits to store

#incomplete


See also: Miller-Rabin randomized primality test (1976, 1980)

Used in Rabin–Karp_algorithm #incomplete


References:

  1. M. O. Rabin, ‘Fingerprinting by random polynomials’, Technical report, 1981.
  2. https://www.cs.cmu.edu/afs/cs/academic/class/15451-f14/www/lectures/lec6/karp-rabin-09-15-14.pdf
  3. https://en.wikipedia.org/wiki/Rabin_fingerprint